package globals

import (
	"context"
	"github.com/go-redis/redis/v8"
	"github.com/gorilla/websocket"

	"gorm.io/gorm"
)

var (
	DB  *gorm.DB
	Rdb *redis.Client
	Ctx = context.Background()
)
var ClientMap map[int]Node = make(map[int]Node)

type Node struct {
	Conn *websocket.Conn
	Data chan []byte
}
type Message struct {
	UserId  int    `json:"userId"`
	DistId  int    `json:"distId"`
	Content string `json:"content"`
	Cmd     int    `json:"cmd"`
}
